package remato.domain.common.impl;

import remato.common.domain.impl.base.DomainName;
import remato.common.domain.property.PropertyTypeEnum;
import remato.domain.common.PropertyDef;

public class PropertyDefImpl extends DomainName implements PropertyDef {
	private PropertyTypeEnum type;
	private String defaultValue;
	
	public PropertyDefImpl(PropertyTypeEnum type) {
		super();
		if (null == type) {
			throw new AssertionError(PropertyTypeEnum.class.getName() + " argument cannot be null.");
		}
		this.type = type;
	}
	public PropertyDefImpl() {
		super();
	}
	
	public String getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	public PropertyTypeEnum getPropertyTypeEnum() {
		return type;
	}
	public void setPropertyTypeEnum(PropertyTypeEnum type) {
		this.type = type;
	}

}
